﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Kugar.UI.Web.AdminLTE.Models
{
    public class AuthorityGroup
    {
        public string GroupID { set; get; }

        public string GroupTitle { set; get; }

        public AuthorityInfoItem[] Items { set; get; }
    }


    public class AuthorityInfoItem
    {
        public AuthorityInfoItem() { }

        public AuthorityInfoItem(string authorityID, string title, string description = "")
        {
            AuthorityID = authorityID;
            Title = title;
            Description = description;
        }

        public string AuthorityID { set; get; }

        public string Title { set; get; }

        public string Description { set; get; }
    }

    public class Model_AdminUserAuthorityDetail
    {
        public string[] SelectedAuthorityIDs { set; get; }

        public string AdminUserID { set; get; }

        public AuthorityGroup[] Groups { set; get; }
    }


}
